<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <property>
    <name>dfs.namenode.name.dir</name>
    <value>{{ hadoop_datadir }}/nn</value>
  </property>
  <property>
    <name>dfs.datanode.data.dir</name>
    <value>{{ hadoop_datadir }}/dn</value>
  </property>

  <property>
    <name>dfs.permissions.enabled</name>
    <value>false</value>
  </property>
  <property>
    <name>dfs.replication</name>
    <value>1</value>
  </property>
  <property>
    <name>dfs.namenode.handler.count</name>
    <value>100</value>
  </property>
  <property>
    <name>dfs.namenode.rpc-address</name>
    <value>{{ hostvars[groups['hadoop'][0]]['hostname'] }}:8020</value>
  </property>
  <property>
    <name>dfs.namenode.http-address</name>
    <value>{{ hostvars[groups['hadoop'][0]]['hostname'] }}:9870</value>
  </property>
  <property>
    <name>dfs.safemode.threshold.pct</name>
    <value>0</value>
  </property>
</configuration>
